package net.mcreator.toolsasfood.procedures;

import net.minecraft.world.level.LevelAccessor;
import net.minecraft.tags.BlockTags;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.core.BlockPos;

public class BlockGlowingProcedure {
	public static void execute(LevelAccessor world, double x, double y, double z) {
		double fx = 0;
		double fy = 0;
		double fz = 0;
		double nx = 0;
		double nz = 0;
		fx = Math.floor(x - 8);
		fy = Math.floor(y - 8);
		fz = Math.floor(z - 8);
		nx = fx;
		nz = fz;
		for (int index0 = 0; index0 < (int) (16); index0++) {
			for (int index1 = 0; index1 < (int) (16); index1++) {
				for (int index2 = 0; index2 < (int) (16); index2++) {
					if (BlockTags.getAllTags().getTagOrEmpty(new ResourceLocation("forge:oreblock"))
							.contains((world.getBlockState(new BlockPos((int) fx, (int) fy, (int) fz))).getBlock())) {
						GlowingProcedure.execute(world, fx, fy, fz);
					}
					fx = fx + 1;
				}
				fx = nx;
				fz = fz + 1;
			}
			fz = nz;
			fy = fy + 1;
		}
	}
}
